import java.io.*;
public class ReadWriteFile {
    public static BufferedReader bufread;
    //指定文件路径和名称
    private static String path = "F:/码云/Arithmetic.txt";
    private static  File filename = new File(path);
    private static String readStr ="";
    

    //创建文本文件.

    public static void creatTxtFile() throws IOException{
        if (!filename.exists()) {
            filename.createNewFile();
            System.err.println(filename + "已创建");
        }
    }
    }
